<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<? $cnf = Zend_Registry::get('cnf'); ?>
<base href="<?=($cnf->url->host.$cnf->url->base) ?>"/>

<script type="text/javascript">
<!--
var base_url = 'admin';
//-->
</script>

<link rel="stylesheet" type="text/css" href="css/default.css"/>
<!--<link rel="stylesheet" type="text/css" href="css/superfish.css"/>-->

<link rel="stylesheet" type="text/css" href="css/dropmenu2.css"/>

<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

<!--<script type="text/javascript" src="js/superfish.js"></script>-->
<script type="text/javascript" src="js/jquery.flash.js"></script>

<script type="text/javascript" src="js/mootools-1.2-core-jm.js"></script>
<script type="text/javascript" src="js/dropmenu2.js"></script>

<script type="text/javascript">
<!--
//superfish menu
//jQuery(function(){ jQuery('ul.sf-menu').superfish({delay: 200}); });

//mootools menu
window.addEvent('domready',function(){ menu = new DropMenu('navmenu'); });

//show flash message
<?php if (!empty($this->flash)): ?>
jQuery(document).ready(function(){
    <?php foreach ($this->flash as $message): ?>
    jQuery.flash.success('Success', '<?=$message ?>');
    <?php endforeach; ?>
});
<?php endif; ?>
//-->
</script>

<?= $this->headTitle(); ?>
<?= $this->headLink() ?>
<?= $this->headScript() ?>

</head>
<body>

<!--<ul class="sf-menu sf-shadow">-->
<ul id="navmenu" class="mainmenu">
    <li><a href="<?=$this->url(array('controller'=>'index', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Home</a></li>

    <li><a href="<?=$this->url(array('controller'=>'users', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Users</a>
        <ul>
            <li><a href="<?=$this->url(array('controller'=>'users', 'action'=>'add', 'module' => 'admin'), null, true); ?>">Add user</a></li>
            <li><a href="<?=$this->url(array('controller'=>'users', 'action'=>'list', 'module' => 'admin'), null, true); ?>">Users list</a></li>
        </ul>
    </li>

    <li><a href="<?=$this->url(array('controller'=>'groups', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Groups</a>
        <ul>
            <li><a href="<?=$this->url(array('controller'=>'groups', 'action'=>'add', 'module' => 'admin'), null, true); ?>">Add group</a></li>
        </ul>
    </li>
    <li><a href="<?=$this->url(array('controller'=>'categories', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Categories</a>
        <ul>
            <li><a href="<?=$this->url(array('controller'=>'categories', 'action'=>'add', 'module' => 'admin'), null, true); ?>">Add category</a></li>
        </ul>
    </li>
    <li><a href="<?=$this->url(array('controller'=>'articles', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Articles</a>
        <ul>
            <li><a href="<?=$this->url(array('controller'=>'articles', 'action'=>'add', 'module' => 'admin'), null, true); ?>">Add article</a></li>
        </ul>
    </li>
    <li><a href="<?=$this->url(array('controller'=>'pictures', 'action'=>'index', 'module' => 'admin'), null, true); ?>">Pictures</a>
        <ul>
            <li><a href="<?=$this->url(array('controller'=>'pictures', 'action'=>'add', 'module' => 'admin'), null, true); ?>">Add picture</a></li>
        </ul>
    </li>
    <li><a href="<?=$this->url(array('controller'=>'users', 'action'=>'logout', 'module' => 'default'), null, true); ?>">Logout</a></li> 
</ul>

<div id="flash"></div>

<!--<div id="content">-->
    <h1><?php echo $this->placeholder('title') ?></h1>
    <?php echo $this->layout()->content; ?>
<!--</div>-->

</body>
</html>